<link rel="stylesheet" href="__STATIC__/plugs/lay-module/treetable-lay/treetable.css?v={:time()}" media="all">
<style>
    .layui-btn:not(.layui-btn-lg ):not(.layui-btn-sm):not(.layui-btn-xs) {
        height: 34px;
        line-height: 34px;
        padding: 0 8px;
    }

</style>
<div class="layuimini-container">
    <div class="layui-tab layui-tab-card" style="min-height: 660px">
        <ul class="layui-tab-title">
            <li {if $position eq 1}class="layui-this"{/if}><a href="{:url('system.nav/index')}?position=1">主导航</a></li>
            <li {if $position eq 2}class="layui-this"{/if}><a href="{:url('system.nav/index')}?position=2">底部导航</a></li>
            <li {if $position eq 3}class="layui-this"{/if}><a href="{:url('system.nav/index')}?position=3">单页导航</a></li>
        </ul>
        <div class="layui-tab-brief">
            <div class="layui-tab-content" style="padding: 30px 20px">

                <table id="currentTable" class="layui-table layui-hide"
                       data-auth-add="{:auth('system.nav/add')}"
                       data-auth-edit="{:auth('system.nav/edit')}"
                       data-auth-delete="{:auth('system.nav/delete')}"
                       lay-filter="currentTable">
                </table>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="toolbar">
    <button class="layui-btn layui-btn-sm layuimini-btn-primary" data-treetable-refresh><i class="fa fa-refresh"></i> </button>
    <button class="layui-btn layui-btn-normal layui-btn-sm {if !auth('system.nav/add')}layui-hide{/if}" data-open="system.nav/add?position={$position}" data-title="添加" data-full="true"><i class="fa fa-plus"></i> 添加</button>
    <button class="layui-btn layui-btn-sm layui-btn-danger {if !auth('system.nav/delete')}layui-hide{/if}" data-url="system.nav/delete" data-treetable-delete="currentTableRenderId"><i class="fa fa-trash-o"></i> 删除</button>
</script>